package com.dji.ux.sample.TCPClient;

public enum PLCStatus {
    PLC_HEART("本机心跳",0),
    READY_PICKUP_OK("准备接机OK",1),
    CHANGE_BATTERY_OK("更换电池OK",2),
    READY_TAKEOFF_OK("准备放飞OK",3),
    RECEIVE_DRONE_OK("收机入库OK",4),
    HAVE_FULLBATTERY("有满电电池",5),
    HAVE_DRONE("平台上有飞机",6),
    NO_FULLBATTERY("没电池可换报警",7),
    STEP_ONE_WARRING("步进1报警",8),
    STEP_TOW_WARRING("步进2报警",9),
    STEP_THREE_WARRING("步进3报警",10),
    STEP_FOUR_WARRING("步进4报警",11),
    OPENDING_DOOR_TOOLONG("开门时间过久",12),
    CLOSING_DOOR_TOOLONG("关门时间过久",13),
    PLATFORM_RISE_TOOLONG("平台上升过久",14),
    PLATFORM_DROP_TOOLONG("平台下降过久",15),
    SET_ONE_GO_TOOLONG("定1前进过久",16),
    SET_ONE_BACK_TOOLONG("定1后退过久",17),
    SET_TOW_GO_TOOLONG("定2前进过久",18),
    SET_TOW_BACK_TOOLONG("定2后退过久",19),
    GRIPPER_FAILURE("夹爪动作故障",20),
    DRONE_POWER_ON_OK("无人机开启动作完成", 21),
    PLATFORM_RISE_OK("停机坪上升动作完成", 22),
    PLATFORM_DROP_OK("停机坪下降动作完成", 23),
    DRONE_POWER_OFF_OK("无人机关闭动作完成", 24),
    DRONE_POWER_OK("更换电池动作完成", 25),
    OPENDING_DOOR_OK("开门动作完成", 26),
    CLOSING_DOOR_OK("关门动作完成", 27);

//    private String code;
    private String text;
    private int index;

    PLCStatus(String text, int index) {
        this.text = text;
        this.index = index;
    }

    public String getText() {
        return text;
    }

    public int getIndex() {
        return index;
    }
}
